﻿using System;
using System.Threading;

namespace YJKInspectModel.ModelValidation.ClearHeightCheck
{
	public class Request
	{
		public RequestId Take()
		{
			return (RequestId)Interlocked.Exchange(ref this.m_request, 0);
		}

		public void Make(RequestId request)
		{
			Interlocked.Exchange(ref this.m_request, (int)request);
		}

		private int m_request;
	}
}
